package com.situ.team5.kzq.recruit.service;

import com.situ.team5.kzq.recruit.dao.SalaryGrantDetailsDAO;
import com.situ.team5.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

//职位发表登记接口实现类层
@Service
public class SalaryGrantDetailsServiceImpl implements SalaryGrantDetailsService

{
    //dao层方法名与实现类方法相同
    @Autowired
    SalaryGrantDetailsDAO sdao;
    //一级机构查询
    @Override
    public List<ConfigFileFirstKind> file_first_kindSelect() {
        return sdao.file_first_kindSelect();
    }

    //查找与一级机构id有关的二级机构
    @Override
    public List<ConfigFileSecondKind> file_second_kindSelectOne(int id) {

        return sdao.file_second_kindSelectOne(id);
    }

    //查找与二级机构id有关的三级机构
    @Override
    public List<ConfigFileThirdKind> file_third_kindSelectOne(int id) {
        return sdao.file_third_kindSelectOne(id);
    }

    //对职位变更表的全查
    @Override
    public List<Map> engage_major_releaseSelectAll() {
        return sdao.engage_major_releaseSelectAll();
    }

    //对职位变更表通过id进行查询
    @Override
    public Map EngageMajorReleaseupdate(Integer id) {
       return  sdao.EngageMajorReleaseupdate(id);
    }


    //对职位变更表通过id进行修改
    @Override
    public void EngageMajorReleaseupdate2(EngageMajorRelease e) {
        sdao.EngageMajorReleaseupdate2(e);
    }
    //职位分类表全查做下拉框的
    @Override
    public List<ConfigMajorKind> config_major_kindSelect() {
        return sdao.config_major_kindSelect();
    }

    //通过职位分类表id查询职位设置表
    @Override
    public List<ConfigMajor> config_majorSelectOne(int id) {
        return sdao.config_majorSelectOne(id);
    }
    //  //职位变更表添加数据
    @Override
    public void EngageMajorReleaseInsert(EngageMajorRelease er) {
        sdao.EngageMajorReleaseInsert(er);

    }

    @Override
    public void engage_major_releaseDelete(int id) {
        sdao.engage_major_releaseDelete(id);
    }


}
